<!--
 * @Description: 点击跳转新页面按钮
-->
<template>
    <a
        :href="`${item.clickUrl.includes('//') ? item.clickUrl : ctxPath + item.clickUrl}`"
        target="_blank"
        ><i :class="item.image"></i>{{ item.label }}
    </a>
</template>
<script>
    import globalData from '@/plugins/data';

    export default {
        name: 'OpenUrlButton',
        props: {
            //按钮数据对象
            item: {
                type: Object,
            },
        },
        created() {
            this.ctxPath = globalData.ctxPath;
        },
    };
</script>
